diff options
| author | Adam Soltys <[email protected]> | 2024-11-06 23:10:14 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-06 23:10:14 -0800 |
| commit | fef8b840e14cfc935c59fea29957c78ff13d3312 (patch) | |
| tree | 8404c55178528b39268615de182a9b879524d0e3 /src/routes/(app)/invoice/[id]/+layout.server.ts | |
| parent | 2543db7ab1874d4e773a03c26946ad179877d443 (diff) | |
| download | coinos-ui-fef8b840e14cfc935c59fea29957c78ff13d3312.tar.gz coinos-ui-fef8b840e14cfc935c59fea29957c78ff13d3312.zip | |
theme cookie
Diffstat (limited to 'src/routes/(app)/invoice/[id]/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+layout.server.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts index a844b928..e428d9fe 100644 --- a/src/routes/(app)/invoice/[id]/+layout.server.ts +++ b/src/routes/(app)/invoice/[id]/+layout.server.ts @@ -1,6 +1,6 @@ -import * as Qr from "qrcode-base64"; import { get } from "$lib/utils"; import { redirect } from "@sveltejs/kit"; +import * as Qr from "qrcode-base64"; export async function load({ cookies, depends, params, url, parent }) { depends("app:invoice"); @@ -36,5 +36,6 @@ export async function load({ cookies, depends, params, url, parent }) { } const src = Qr.drawImg(invoice?.text || "", { size: 500 }); - return { id, invoice, subject, src, user, token }; + const theme = cookies.get("theme"); + return { id, invoice, subject, src, user, token, theme }; } |
